package com.mingtu.dzpatrol.utils;

import static com.chad.library.adapter.base.BaseQuickAdapter.SCALEIN;

/**
 * 描述：
 * 修改人：
 * 修改时间：
 * 修改备注：
 *
 * @author wkk
 */

public class Constant {


    public static Constant constant;
    public boolean isXUpdate = true;//是否使用
    public boolean isScreenAdaption = false;//是否使用
    public static final boolean IS_SHOW_LOG = true;//是否显示log

    public static final String RESULT_SUCCESS = "success";

    public static final int TIMER_TIME = 1500;
    public static final int Intensity = 2;
    public static final int LOCATION_INTERVAL_TIME = 6 * 1000;
    public static final int MAP_ZOOM = 18;
    public static final int MAP_ZOOM_TWO = 15;
    public static final int ItemDecorationSpaces = 15;
    public static final int MIN_ZOOM = 5; //地图切片的最小级层级
    public static final int MAX_ZOOM = 18; //地图切片的最大级层级
    public static final int LOADMORE_TIME = 500;
    public static final int PAGE_SIZE = 10;
    public static final int REFRESH_TIME = 1500;
    public static final int LOGIN_TYPE = 2; //登录类型

    public static final int REQUEST_CODE_TWO = 200;
    public static final int RESULT_CODE_TWO = 201;

    public static final int INFO_WINDOW_OFF_SET_Y = 40;
    public static final int INFO_WINDOW_OFF_SET_Y2 = 20;

    public static final Boolean isOpenLoadAnimation = true; //是否打开列表动画
    public static final Boolean isFirstOnly = false;
    public static final int animationType = SCALEIN;

    public static synchronized Constant getInstance() {
        if (constant == null) {
            constant = new Constant();
        }
        return constant;

    }

    public static final String SERVER = "https://www.mingtukeji.com";
    public static final String SERVER2 = "https://static.mingtukeji.com";
    public static final String HOST = "/py-api/app";
    public static final String POST_LOGIN = SERVER + HOST + "/login"; //登录
    public static final String POST_LOGOUT = SERVER + HOST + "/logout"; //退出登录
    public static final String GET_USER_INFO = SERVER + HOST + "/userInfo"; //获取用户信息
    public static final String POST_UPDATE_PASSWORD = SERVER + HOST + "/updatePassword"; //修改密码
    public static final String GET_UPDATE = SERVER + HOST + "/appVersion"; //检查更新

    public static final String POST_UPLOAD_LOCATION = SERVER + HOST + "/uploadLocation"; //上传实时的轨迹

    public static final String POST_CAMERA_LIST = SERVER + HOST + "/equ/cameraDeptList"; //摄像头列表
    public static final String POST_PREVIEW_URL = SERVER + HOST + "/equ/previewURLs"; //预览视频rtsp地址
    public static final String POST_PLAY_BACK_URL = SERVER + HOST + "/equ/playbackURLs"; //回放视频rtsp地址
    public static final String POST_PTZ_CONTROLL = SERVER + HOST + "/equ/controlling"; //云台控制
    public static final String POST_PTZ_SEL_ZOOM = SERVER + HOST + "/equ/selZoom"; //监控点3D放大
    public static final String POST_CAMERA_TYPE = SERVER + HOST + "/equ/queryCameraType";//摄像头类型
    public static final String POST_CAMERA_TOTAL_INFO = SERVER + "/equ/cameraAppCount";//设备总数统计
    public static final String POST_CAMERA_CONFIG_INFO = SERVER + HOST + "/equ/cameraInfo"; //摄像头配置信息
    public static final String POST_DEPT_LIST = SERVER + HOST + "/equ/deptList"; //摄像头部门列表
    public static final String GET_AREA = SERVER2 + "/dongzhai/geodata/vector/dongzhai_gcj02.geojson";//区域范围


}
